Posted by Jeff C from fw1.cybersafe.com (192.156.168.6)on March 10, 1998 at 16:00:06:
Well, last night I glanced at the wrapper again. i think I am gettting
to the point where v_xyzrgb is no longer the only vertex we can use.
I am thinking of writing ConvertGrVtoRV (terrible name, I'll change
that, too) so that it starts off returning a v_xy, and when we detect
other optons like:
Z
RGB
A
UVW
we will add them into the mix. This will solve a lot of problems. I
think the reason a lot of things are not working right now is because
the vertex is putting too much info in, and maybe we don't have that
much info. We need to set up defaults.
I am mainly interested right now in getting the Glide TEST??.EXE
programs to work before moving on to games, even though most games will
probably use only the vertex type v_xyzrgbauvw. This means game support
will be just a little further off. I want to tackle the simple problems
before moving on to the tough ones.
Also, I am going to start making some global structures to hold some of
the global variables. It really wigs me out seeing all those globals
just stting there. if I can encapsulate them somehow so i don't have to
see them, I will be much happier.
If someone wants to try to hook up the gu3dfLoad function like Chris was
talking about, it would look something like this: (i did this from
memory, so it is a little off)
copy 3dfx's glide2x.dll to something else in the current directory,
something like glwrap.dll
within gu3dfLoad in the wrapper:
typedef FxBool gu3dfGetInfofn( const char *filename, Gu3dfInfo *info
);
typedef FxBool gu3dfLoadfn( const char *filename, Gu3dfInfo *info );
handle = LoadLibrary("glwrap.dll");
lpinfofn = (gu3dfGetInfofn)GetProcAddress(handle, "gu3dfGetInfo");
lploadfn = (gu3dfLoadfn)GetProcAddress(handle, "gu3dfLoad");
(&lpinfofn)("glwrap.dll", &grinfo);
(now grinfo contains a size that you must alloc, I don't know what the
struct looks like)
(&lploadfn)("glwrap.dll, &grinfo);
I am working this week (like every other week), so I probably won't get
much done until the weekend.